From 997dda0e6afe2e16b2d01180d27587ef412f31a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 13 Nov 2007 01:09:28 +0000 Subject: [PATCH] swapped source and destination around in memcpy. * babl/babl-fish.c: (babl_fish_process): swapped source and destination around in memcpy. svn path=/trunk/; revision=251 --- ChangeLog | 5 +++++ babl/babl-fish.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fae4f2b..f7437a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-13 Øyvind Kolås + + * babl/babl-fish.c: (babl_fish_process): swapped source and + destination around in memcpy. + 2007-11-13 Øyvind Kolås * babl/babl-fish.c: (go_fishing): optimized fishing when looking diff --git a/babl/babl-fish.c b/babl/babl-fish.c index 1aa329e..95a0aad 100644 --- a/babl/babl-fish.c +++ b/babl/babl-fish.c @@ -173,7 +173,7 @@ babl_fish_process (Babl *babl, { if (babl->fish.source == babl->fish.destination) { /* XXX: we're assuming linear buffers */ - memcpy (source, destination, n * babl->fish.source->format.bytes_per_pixel); + memcpy (destination, destination, n * babl->fish.source->format.bytes_per_pixel); ret = n; } else -- 2.30.2